
@import "schema.less";
.datagrid{
  background: #fff;
  position:relative;
  overflow: hidden;
  display: flex;
  display: -webkit-flex; /* Safari */
  flex-direction: column;
  flex: auto;
  table{
    //border: solid 1px #858585;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
    td{
      border-bottom: solid 1px #efefef;
      padding: 0 3px;
    }
  }
  >.header {
     min-height: 40px;
     overflow: hidden;
     table{

      td {
        border-bottom: solid 1px #c8c8c8;
        background: #efefef;
        line-height: 40px;
        color: #444;
        overflow: hidden;
      }
    }
    display: -webkit-flex; /* Safari */
    flex-direction: row;
    >.left {
      display: inline-flex;
      overflow: hidden;
    }

    >.right {
      display: inline-flex;
      overflow-x:hidden;
      overflow: hidden;
    }

  }
  >.body{
    overflow-x:hidden;
    overflow-y: auto;
    flex-direction: row;
    display: -webkit-flex; /* Safari */
    flex-wrap:nowrap;
    flex: auto;
    tr{
      background: #fff;
      color: #444;
      &:hover{
          background: @select-hover;
          color: #444;
          cursor: pointer;
      }
    }
    td{

      line-height: 40px;
      padding: 0 3px;
      overflow: hidden;

    }
    >.left {
      display: inline-flex;
      white-space: nowrap;
      overflow-y: hidden;

    }

    >.right {
      display: inline-flex;
      overflow-x:scroll;
      flex: 1;
      white-space: nowrap;

    }
  }
}
